package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author du
 * date 2018/7/28 下午10:35
 */
public class QuestionResultsResult implements Parcelable{
    /**
     * info : 回答错误
     * state : 1
     * next_good_key : VxUJQFEMAAk
     */

    private String info;//回答状态
    private String state;//回答状态（1-错误，2-正确）
    private String next_good_key;//下一题good_key值，如果回答错误，继续为当前key，如果正确进入下一题。
    private String next_wrong_key;//下一题wrong_key值，如果回答错误，继续为当前key，如果正确进入下一题。

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getNext_good_key() {
        return next_good_key;
    }

    public void setNext_good_key(String next_good_key) {
        this.next_good_key = next_good_key;
    }

    public String getNext_wrong_key() {
        return next_wrong_key;
    }

    public void setNext_wrong_key(String next_wrong_key) {
        this.next_wrong_key = next_wrong_key;
    }

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.info);
        dest.writeString(this.state);
        dest.writeString(this.next_good_key);
        dest.writeString(this.next_wrong_key);
    }

    public QuestionResultsResult() {}

    protected QuestionResultsResult(Parcel in) {
        this.info = in.readString();
        this.state = in.readString();
        this.next_good_key = in.readString();
        this.next_wrong_key = in.readString();
    }

    public static final Creator<QuestionResultsResult> CREATOR = new Creator<QuestionResultsResult>() {
        @Override
        public QuestionResultsResult createFromParcel(Parcel source) {return new QuestionResultsResult(source);}

        @Override
        public QuestionResultsResult[] newArray(int size) {return new QuestionResultsResult[size];}
    };
}
